package com.aaa.system.service;

import com.aaa.entity.Role;
import com.aaa.entity.RoleMenu;
import com.aaa.system.vo.RoleVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

public interface RoleService {

    Result<Map<String, Object>> findUserRoleByUserId(Long userId);

    Result<String> shareRole(Long userId, Long[] roleIds);

    Result<IPage<Role>> findAllData(RoleVo roleVo);

    Result<Boolean> saveOrUpdateRole(Role role);

    Result<Boolean> delOneRole(Long roleId);

    List<RoleMenu> findMenuByRoleId(Long roleId);

    Result<Boolean> bachRole(Long[] roleIds);
}
